	import {
		defineConfig
	} from 'vite'
	import uni from '@dcloudio/vite-plugin-uni'
	import AutoImport from 'unplugin-auto-import/vite'
	export default (defineConfig({
		plugins: [
			uni(),
			AutoImport({
				include: [
					/\.[tj]sx?$/, // .ts, .tsx, .js, .jsx
					/\.vue$/,
					/\.vue\?vue/, // .vue
				],
				imports: ['vue', 'uni-app'],
				dts: 'auto-imports.d.ts',
				//  eslintrc 配置，避免 ESLint 报错
				eslintrc: {
					enabled: true,
				},
			}),
		]
	}))